package com.macro.mall.service;

import com.macro.mall.model.OmsCompanyAddress;
import com.macro.mall.model.UmsMemberReceiveAddress;

import java.util.List;

/**
 * 收货地址管Service
 * Created by macro on 2018/10/18.
 */
public interface AddressService {
    /**
     * 获取全部收货地址
     */
    List<UmsMemberReceiveAddress> list();

    /**
     * 删除收货地址
     * @param id
     * @return
     */
    int delect(Long id);

    /**
     * 新增收货地址
     * @param omsCompanyAddress
     * @return
     */
    int insert(UmsMemberReceiveAddress omsCompanyAddress);

    /**
     * 自动识别
     * @param addrName
     * @return
     */
    UmsMemberReceiveAddress abc(String addrName);

    /**
     * 回显
     * @param id
     * @return
     */
    UmsMemberReceiveAddress selectAddr(Long id);

    /**
     * 修改
     * @param umsMemberReceiveAddress
     * @return
     */
    int updateAddr(UmsMemberReceiveAddress umsMemberReceiveAddress);
}
